package com.jidong.test_springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="t_user")
public class User {
	@TableId
	private int id;
	@TableField(value="uname")
	private String name;
	@TableField(value="gender")
	private String gender;
	@TableField(value="age")
	private int age;
	@TableField(value="pwd")
	private String pwd;
	
	public User(String name, String gender, int age, String pwd) {
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.pwd = pwd;
	}
	
}
